<?php
$arrParams = array(
    'modules' => Yii::app()->controller->module->id,
    'controller' => Yii::app()->controller->id,
    'action' => Yii::app()->controller->action->id
);
?>
<form name="adminForm" id="adminForm" class="form_pick" action="<?php echo Yii::app()->createUrl(MiisHelper::url($arrParams)); ?>" method="post">
    <?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'id' => 'RAudio-grid',
         'type'=>'striped bordered condensed',
        'dataProvider' => $model->search(),
        'selectableRows' => 2, // multiple rows can be selected
        'template' => "{items}{summary}{pager}",
        'columns' => array(
            array(
                'class' => 'CCheckBoxColumn',
                'id' => 'cid',
                'value' => '$data->id',
                'headerHtmlOptions' => array(
                    'style' => 'width:25px;',
                ),
            ),            
            array('name' => 'name', 'header' => 'name','htmlOptions'=>array('style'=>'width: 50px'),),
            array('name' => 'sentence', 'header' => 'sentence'),
            array('name' => 'create_time', 'header' => 'create_time'),
            array('name' => 'state',
                'header' => 'state',
                'value' => '@$model->state ? "Public" : "Unpublic"',
                'filter' => CHtml::activeDropDownList($model, 'state', array(0 => "Unpublic", 1 => "Public"))
            ),
            
        ),
    ));
    ?>
    <input type="hidden" value="" id="confirm">
    <a class="btn-info btn xacnhan" onclick=" $('#confirm').val('ok');$.fancybox.close();return false;"  >Đồng ý</a>
     <div class="control-group">
        <div class="control-label">
            <label>IMG</label>
        </div>
        <div class="controls">
            
      <?php
                        $this->widget('ext.elFinder.ServerFileInput', array(
                            'model' => $model,
                            'attribute' => 'url',
                            'connectorRoute' => 'sysadmin/elfinder/connector',
                                )
                        );
      ?>
        </div>
    </div>

</form>